package com.neuedu.dao;

import java.util.List;
import java.util.Map;

import com.neuedu.model.Admin;
import com.neuedu.model.FoodType;
import com.neuedu.model.UserMessage;

public interface UserMessageDao {
	
	public int countUserMessage();
	public List<UserMessage> findAll(Map<String, Object> map);
	public int addUserMessage(UserMessage um);
	public int updateUserMessage(UserMessage um);
	public int deleteUserMessage(int id);
	
	/**
	 * 登录使用，用于根据账号密码，密码登录
	 * @param u
	 * @return
	 */
	public UserMessage findUserByName(UserMessage um);
	
	public List<UserMessage> findList();
	
	public UserMessage findUserById(UserMessage um);
	

}
